package com.fjl.boot;


import org.springframework.boot.diagnostics.FailureAnalysis;
import org.springframework.boot.diagnostics.FailureAnalyzer;
import org.springframework.stereotype.Component;

// 15. FailureAnalyzer 启动失败分析
@Component
class MyFailureAnalyzer implements FailureAnalyzer {
    @Override
    public FailureAnalysis analyze(Throwable failure) {
        System.out.println(">> FailureAnalyzer.analyze");
        return null; // 不做特殊分析，返回null
    }
}
